package top.weiyuexin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import top.weiyuexin.pojo.User;

import java.util.List;



public interface UserService extends IService<User> {
    Integer getByEmailOrName(String email, String username);

    User getByNameAndPassword(String username, String password);

    User getByNameAndPasswordAndIsAdmin(String username, String password);

    IPage<User> getPage(Integer currentPage, Integer pageSize, User user);

    IPage<User> rank(Integer currentPage, Integer pageSize, String search);

    List<User> indexRank(Integer num);
}
